#ifndef SUB_CONTROLL_ITEM_H
#define SUB_CONTROLL_ITEM_H

#include <goocanvas.h>
#include <broadcast.h>
#include <viewConf.h>
#include <iconButton.h>


namespace Controller{


}

namespace View {

  class SubControllItem
  {
  protected:
    GooCanvasItem *root;
    gdouble coordinatesX;
    gdouble coordinatesY;

  public:
    SubControllItem(GooCanvasItem *parent);
    virtual ~SubControllItem();
    
    bool RunTo(double xOffset, double yOffset);
    virtual int OnReceive(Controller::Broadcast *broadcast) = 0;
    virtual bool SendAllAddress() = 0;
    virtual bool CheckInputData() = 0;
  };

}

#endif
